<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<h1>linux</h1>
	<p>links is very much id bera teacher student links is very much id bera teacher studentlinks is very much id bera teacher student</p>
	<h1>linux</h1>
	<p>links is very much id bera teacher student links is very much id bera teacher studentlinks is very much id bera teacher student</p>
	<h1>linux</h1>
	<p>links is very much id bera teacher student links is very much id bera teacher studentlinks is very much id bera teacher student</p>
	<h1>linux</h1>
	<p>links is very much id bera teacher student links is very much id bera teacher studentlinks is very much id bera teacher student</p>
</body>
<script type="text/javascript">

objs=document.getElementsByTagName('h1');

	ps=document.getElementsByTagName('p');

	
	for(i=0;i<objs.length;i++){
		objs[i].setAttribute('line',i);
		objs[i].setAttribute('num',0);
		ps[i].id=i;


objs[i].onclick=function(){
	num=parseInt(this.getAttribute('num'));
	line=this.getAttribute('line');
	np=document.getElementById(line);
    if(num%2==0){
np.style.display='none';
    }else{
np.style.display='block';
    }
this.setAttribute('num',num+1);
	}

	}
	
</script>
</html>